﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using System.Threading;
using log4net.Config;
using log4net;
using log4net.Appender;
using AuctionHouseDataLibrary;

namespace ItemDatabase
{
    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
            BasicConfigurator.Configure(new FileAppender(new log4net.Layout.SimpleLayout(), AuctionHouseDataLibrary.Globals.Logfile));
            Globals.Logger = LogManager.GetLogger("");
            Globals.Logger.Info("WCF Service Start");
        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {
            Globals.Logger.Info("WCF Service Stop");
        }
    }
}